package com.example.homework_20220930;

import java.util.Collection;
import java.util.HashMap;

public class SeriousIllness {
    String gender;
    HashMap<String,String> option;

    public SeriousIllness(){
        option = new HashMap<>(){
            {
                put("boy","The insurance premium for 0-year-old boys is 3090 yuan per year.");
                put("girl","The insurance premium for 0-year-old boys is 2970 yuan per year.");
            }
        };

        Collection<String> genderOption = option.keySet();
        gender = Main.getInfo("Please enter the gender of the applicant(boy or girl):",genderOption);

        System.out.println(option.get(gender));

    }
}
